#include "..\..\TYPES.H"
#include "..\COMMON\PALT.H"

PALETTEENTRY tblPal1a[16] = {
  {   0,   0,   0, 1 }, { 224, 224, 224, 1 }, {   0, 192, 224, 1 }, {   0, 160, 224, 1 },
  {   0, 128, 224, 1 }, {   0, 128, 224, 1 }, {   0,  64, 224, 1 }, {   0,  32, 224, 1 },
  {   0,   0, 224, 1 }, {   0,   0, 192, 1 }, {   0,   0, 160, 1 }, {   0,   0, 128, 1 },
  {   0,   0, 128, 1 }, {   0,   0,   0, 1 }, {   0,   0,   0, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY tblPal1[16] = {
  {   0,   0,   0, 1 }, {  96,  96, 224, 1 }, { 128, 128, 224, 1 }, { 192, 192, 224, 1 },
  { 224, 224, 224, 1 }, { 192, 192, 224, 1 }, { 160, 192, 224, 1 }, { 224, 224, 224, 1 },
  { 128, 160, 224, 1 }, {   0,  96,   0, 1 }, {  64, 160,   0, 1 }, { 128, 224,   0, 1 },
  {  32,   0,  64, 1 }, {  96,  32,  32, 1 }, { 160,  96,   0, 1 }, { 224, 160,   0, 1 }
};
PALETTEENTRY tblPal2[16] = {
  {   0,   0,   0, 1 }, {   0,   0,  96, 1 }, {  64,  64, 224, 1 }, {  96,  96, 224, 1 },
  {   0,   0,   0, 1 }, { 128, 128, 224, 1 }, { 224, 224, 224, 1 }, { 224, 160,   0, 1 },
  { 160,  96,   0, 1 }, {  96,  32,   0, 1 }, { 224, 224,   0, 1 }, { 160, 160, 224, 1 },
  { 192,   0,   0, 1 }, {  96,   0,   0, 1 }, {  32,   0,   0, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY tblPal3[16] = {
  {   0,   0,   0, 1 }, {   0,   0,   0, 1 }, {  32,   0,   0, 1 }, {  64,  32,   0, 1 },
  {  96,  64,   0, 1 }, { 128, 128,   0, 1 }, { 192, 192,   0, 1 }, { 224, 224,   0, 1 },
  { 224, 224, 224, 1 }, {   0,   0,   0, 1 }, { 224, 224, 224, 1 }, {   0,   0,   0, 1 },
  {   0,   0,   0, 1 }, {   0,   0,   0, 1 }, {   0,   0,   0, 1 }, {   0,   0,   0, 1 }
};
PALETTEENTRY tblPal4[16] = {
  {   0,   0,   0, 1 }, {   0,   0,  96, 1 }, {   0,   0, 224, 1 }, {   0,  32, 224, 1 },
  {  32,  64, 224, 1 }, {  64,  96, 224, 1 }, { 160, 160, 224, 1 }, {  64,   0,   0, 1 },
  { 128,  64,   0, 1 }, { 160,  96,  64, 1 }, { 224, 160, 128, 1 }, { 224, 224, 224, 1 },
  {  64,  64,  64, 1 }, { 128, 128, 128, 1 }, { 160, 160, 160, 1 }, { 224, 192, 160, 1 }
};
PALETTEENTRY tblPal2a[16] = {
  {   0,   0,   0, 1 }, {   0,   0,  96, 1 }, {  64,  64, 224, 1 }, {  96,  96, 224, 1 },
  {   0,   0,   0, 1 }, { 128, 128, 224, 1 }, { 224, 224, 224, 1 }, { 224, 160,   0, 1 },
  { 160,  96,   0, 1 }, {  96,  32,   0, 1 }, { 224, 224, 224, 1 }, { 160, 160, 224, 1 },
  { 192,   0,   0, 1 }, {  96,   0,   0, 1 }, {  32,   0,   0, 1 }, {   0,   0,   0, 1 }
};
extern PALETTEENTRY* lpColorwk;








































void OEClrset(PALETTEENTRY* pPalet, unsigned short nNumber) { /* Line 81, Address: 0x10061e0 */
  PALETTEENTRY* pColorwk;
  short i;


  pColorwk = &lpColorwk[nNumber * 16]; /* Line 86, Address: 0x10061f4 */

  for (i = 0; i < 16; ++i) { /* Line 88, Address: 0x1006210 */
    *pColorwk = *pPalet; /* Line 89, Address: 0x100621c */
    ++pColorwk; /* Line 90, Address: 0x1006240 */
    ++pPalet; /* Line 91, Address: 0x1006244 */
  } /* Line 92, Address: 0x1006250 */
} /* Line 93, Address: 0x1006270 */
